﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sparrow.CMS
{
    using Sparrow.Extensions;
    using Sparrow.Web.Router;

    public class PageContent
    {
        public string Title
        {
            get;
            set;
        }

        public string Heading
        {
            get;
            set;
        }

        public string Description
        {
            get;
            set;
        }

        public string Keyword
        {
            get;
            set;
        }

        public string Image
        {
            get;
            set;
        }

        public string Content
        {
            get;
            set;
        }

        public string LayoutName
        {
            get;
            set;
        }

        Layout _Layout;
        public Layout Layout
        {
            get
            {
                this._Layout = this._Layout.LazyInit(() => new Layout() { Name = this.LayoutName });
                return this._Layout;
            }
        }

        public string Id
        {
            get;
            set;
        }

        public string Culture
        {
            get;
            set;
        }

        public WebRouter WebRouter
        {
            get;
            set;
        }
    }
}
